package com.example.demo.service.impl;

import com.example.demo.model.Area;
import com.example.demo.model.Pages;
import com.example.demo.repository.ElasticAreaRepository;
import com.example.demo.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("areaService")
public class AreaServiceImpl implements AreaService {

    @Autowired
    private ElasticAreaRepository elasticAreaRepository;

    @Override
    public void saveArea(Area area) {
        elasticAreaRepository.save(area);
    }

    @Override
    public Pages<Area> searchAreaPage(Integer pageNumber, Integer pageSize, String searchContent) {
        return null;
    }

    @Override
    public void getNearbyAreas(double lat, double lon) {

    }
}
